import request from '@/utils/request'

// 查询水电收费标准列表
export function listFeStandard(query) {
  return request({
    url: '/life/feStandard/list',
    method: 'get',
    params: query
  })
}
export function listTotalCheckMater(query) {
  return request({
    url: '/life/feStandard/listTotalCheckMater',
    method: 'get',
    params: query
  })
}


// 查询水电收费标准详细
export function getFeStandard(id) {
  return request({
    url: '/life/feStandard/' + id,
    method: 'get'
  })
}

// 新增水电收费标准
export function addFeStandard(data) {
  return request({
    url: '/life/feStandard',
    method: 'post',
    data: data
  })
}
// 新增水电收费标准
export function createFeeBill(data) {
  return request({
    url: '/life/feStandard/createFeeBill',
    method: 'post',
    data: data
  })
}

// 修改水电收费标准
export function updateFeStandard(data) {
  return request({
    url: '/life/feStandard',
    method: 'put',
    data: data
  })
}

// 删除水电收费标准
export function delFeStandard(id) {
  return request({
    url: '/life/feStandard/' + id,
    method: 'delete'
  })
}
